package com.neusoft.service.impl;

import com.neusoft.entity.Department;
import com.neusoft.mapper.DepartmentMapper;
import com.neusoft.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author akemihomurasama
 */
@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    private DepartmentMapper departmentMapper;

    /**
     * 查询所有科室
     *
     * @return 科室列表
     */
    @Override
    public List<Department> queryAllDepartment() {
        return departmentMapper.queryAllDepartment();
    }
}
